class Organtype < ActiveRecord::Base

  set_table_name 'tipoorgao'

  has_many :organ

  validates_presence_of :id
  validates_presence_of :nome
  validates_presence_of :hierarquia
  validates_uniqueness_of :id
  validates_numericality_of :id

  def to_s
    self.nome
  end

end
